<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>

        /* 设置图片容器 */
        .img-list{
            margin: 0 auto;
            width: 590px;
            height: 470px;
            /* 为ul开启相对定位，目的时时ul中的pointer */
            position: relative;
        }
        li{
            list-style: none;
        }
        .img-list li{
            /* 脱离文档流 */
            position: absolute;
        }

        /* 修改元素的层级来显示图片 */
        .img-list li:nth-child(4){
            z-index: 1;
        }

        .pointer{
            position: absolute;
            z-index: 9999;
            bottom: 20px;
            left: 40px;
        }
        /* 设置导航点的样式 */
        .pointer a{
            /* 行内元素不支持设置宽度高度 */
            /* display: block; */
            /* 设置浮动后，行内会自动转为块元素 */
            float: left;
            width: 10px;
            height: 10px;
            margin: 0 2px;
            background-color: rgba(255, 255, 255, .3);
            border-radius: 50%;
            background-clip: content-box;
            border: 2px solid rgba(255, 255, 255, .3);
            
        }

        .pointer a.active,
        .pointer a:hover
        {
            border: 2px solid rgba(255, 255, 255, .3);
            background-color: #fff;
        }

    </style>
</head>
<body>
    <ul class="img-list">
        <li><a href="javascript:;"><img src="../imgs/1.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/2.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/3.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/4.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/5.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/6.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/7.jpg" alt=""></a></li>
        <li><a href="javascript:;"><img src="../imgs/8.jpg" alt=""></a></li>
    <div class="pointer">
        <a href="javascript:;" class="active"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
        <a href="javascript:;"></a>
    </div>
</ul>
</body>
</html>